<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script>
			
			// 页面加载完成之后执行
			window.onload = function()
			{
				div01.textContent = "abc"	
			}
			// 页面尺寸改变
			window.onresize = function(){
				console.log("页面尺寸改变了！")
			}
		</script>
		
		<div id = "div01">
			123			
		</div>
	</body>
</html>